package com.smile.frame.config.rabbit.voucher;

import com.smile.frame.config.rabbit.enums.IBindEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;


/**
 * 凭证绑定
 *
 * @author LGC
 */
@NoArgsConstructor
@AllArgsConstructor
@Getter
public enum VoucherBindEnum implements IBindEnum {
    /**
     * 凭证绑定
     */
    VOUCHER_CREATE("凭证生成", VoucherRabbitConfig.VOUCHER_EXCHANGE, VoucherRabbitConfig.VOUCHER_CREATE_QUEUE, "voucher.create.key"),

    VOUCHER_EXPIRE_REFUND_DELAY("凭证过期可退-延时", VoucherRabbitConfig.VOUCHER_DELAY_EXCHANGE, VoucherRabbitConfig.VOUCHER_EXPIRE_REFUND_DELAY_QUEUE, "voucher.expire.refund.delay.key"),
    ;


    @Override
    public String toString() {
        return toJson();
    }

    private String desc;

    private String exchange;

    private String queue;

    private String key;


}
